package cn.stu.cms.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.io.Serializable;

/**
 * 页数到页
 *
 * @author gh
 * @date 2023/09/20
 */

@Data
public class PageDto<T> extends Page<T> implements Serializable {
    /**
     * 页面
     */
    private Long page;
    /**
     * 页面大小
     */
    private Long pageSize;

    public PageDto(long page, long pageSize) {
        this.page = page;
        this.pageSize = pageSize;
        super.setCurrent(page);
        super.setSize(pageSize);
    }
}
